﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Buy2Site.UserControls
{
    public partial class SideBar : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["User"] != null)
            {
                PublishItemLink.Visible = true;
            }
            else if (Session["User"] == null)
            {
                PublishItemLink.Visible = false;
            }
        }
        public HyperLink MainLink 
        {
            get 
            {
                return linkMain;
            }
            set
            {
                linkMain = value;
            }
        }
        public HyperLink RegisterLink 
        {
            get
            {
                return linkRegisterPage;
            }
            set
            {
                linkRegisterPage = value;
            }
        }
        public HyperLink AboutLink 
        {
            get
            {
                return linkAbout;
            }
            set
            {
                linkAbout = value;
            }
        }
        public HyperLink ShppingCartLink 
        {
            get
            {
                return linkShppingCart;
            }
            set
            {
                linkShppingCart = value;
            }
        }
        public HyperLink PublishItemLink 
        {
            get
            {
                return linkPublishItem;
            }
            set
            {
                linkPublishItem = value;
            }
        }
    }
}